#include "sample.h"
#include <gtest/gtest.h>

TEST(AddTest, IntegerAddition)
{
	EXPECT_EQ(2, add(1,  1));
	EXPECT_EQ(0, add(1, -1));
	EXPECT_EQ(-2, add(-1, -1));
	EXPECT_LT(add(0x7FFFFFFF, 1), 0);
}

int main(int argc, char *argv[])
{
	testing::InitGoogleTest(&argc, argv);
	return RUN_ALL_TESTS();
}
